<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>合伙人收益</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="刘代应">
	<meta name="hashcode" content="571699706">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "571699706";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("income.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建合伙人收益"
  			,"inport":"导入合伙人收益"
  			,"update":"修改合伙人收益"
  			,"detail":"合伙人收益详情"
  			
  			
			
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>

<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#incomeForm").form({
		"":function(){}
		,"tbPartnerIncome.tbpiId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"tbPartnerIncome.tbpiBrand":function(el){
		}
		,"tbPartnerIncome.tbpiMember":function(el){
		}
		,"tbPartnerIncome.tbpiOrderNo":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "订单号最大长度为32个字符";
		}
		,"tbPartnerIncome.tbpiOrderType":function(el){
		}
		,"tbPartnerIncome.tbpiPartnerNickname":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "合伙人昵称最大长度为32个字符";
		}
		,"tbPartnerIncome.tbpiHead":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "下单人头像最大长度为32个字符";
		}
		,"tbPartnerIncome.tbpiNickname":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "下单人昵称最大长度为32个字符";
		}
		,"tbPartnerIncome.tbpiStreet":function(el){
			if(el.value.length>256 && el.value.indexOf("[*]")==-1)
				return "街道最大长度为256个字符";
		}
		,"tbPartnerIncome.tbpiCity":function(el){
			if(el.value.length>215 && el.value.indexOf("[*]")==-1)
				return "省市区最大长度为215个字符";
		}
		,"tbPartnerIncome.tbpiOrderTime":function(el){
		}
		,"tbPartnerIncome.tbpiMoney":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "收益金额输入格式错误";
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>
 
<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>




<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="TbPartnerIncome" id="incomeForm" name="incomeForm" target="jsoniframe" action="income.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写合伙人收益相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
			
			
					
	{{lz.set("tbpiId_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiId"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiId"))))}}
	{{lz.set("tbpiId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiId}}
	<dl lz:if="{{tbpiId_editable||tbpiId_readonly}}" class="tbpiId hidden " major  ref="tbpiId">
		<dt>编　　号:</dt>
		<dd lz:if="{{tbpiId_editable}}" input="hidden">
			<lz:block lz:if="{{tbPartnerIncome$tbpiId}}">
				{{tbPartnerIncome$tbpiId}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiId}}">
			<input type="hidden" value="{{lz.htm(tbPartnerIncome.tbpiId)}}" name="tbPartnerIncome.tbpiId" id="tbpiId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiId">{{tbPartnerIncome.tbpiId}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiId$||tbPartnerIncome.tbpiId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiId}}
					
	{{lz.set("tbpiBrand_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiBrand"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiBrand"))))}}
	{{lz.set("tbpiBrand_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiBrand}}
	<dl lz:if="{{tbpiBrand_editable||tbpiBrand_readonly}}" class="ribs tbpiBrand  " major  ref="tbpiBrand">
		<dt>品　　牌:</dt>
		<dd lz:if="{{tbpiBrand_editable}}" input="query">
			<lz:block lz:if="{{tbPartnerIncome$tbpiBrand}}">
				{{tbPartnerIncome$tbpiBrand}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiBrand}}">
		 			<input title="请输入品牌信息品牌名称进行查询" class="combox narrow" action="/admin/business/merchant.query.do?value={param}" type="text" id="tbpiBrand" name="tbPartnerIncome.tbpiBrand" text="{{lz.html(tbPartnerIncome.tbpiBrand$||tbPartnerIncome.tbpiBrand)}}" value="{{lz.htm(tbPartnerIncome.tbpiBrand)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#tbpiBrand').val())==''){return;};window.href('/admin/business/merchant.detail.html?key='+$('#tbpiBrand').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiBrand_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiBrand">{{tbPartnerIncome.tbpiBrand}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/business/merchant.details.html?key=tbPartnerIncome.tbpiBrand}')">
			 {{lz.html(tbPartnerIncome.tbpiBrand$||tbPartnerIncome.tbpiBrand)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiBrand}}
					
	{{lz.set("nickName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"nickName"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"nickName"))))}}
	{{lz.set("nickName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$nickName}}
	<dl lz:if="{{nickName_editable||nickName_readonly}}" class="nickName  " major  ref="nickName">
		<dt>会员名称:</dt>
		<dd lz:if="{{nickName_editable}}" input="text">
			<lz:block lz:if="{{tbPartnerIncome$nickName}}">
				{{tbPartnerIncome$nickName}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$nickName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="tbPartnerIncome.nickName" id="nickName"  value="{{lz.htm(tbPartnerIncome.nickName)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人收益的会员名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{nickName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="nickName">{{tbPartnerIncome.nickName}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.nickName$||tbPartnerIncome.nickName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$nickName}}
					
	{{lz.set("tbpiMember_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiMember"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiMember"))))}}
	{{lz.set("tbpiMember_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiMember}}
	<dl lz:if="{{tbpiMember_editable||tbpiMember_readonly}}" class="ribs tbpiMember  " minor  ref="tbpiMember">
		<dt>会　　员:</dt>
		<dd lz:if="{{tbpiMember_editable}}" input="query">
			<lz:block lz:if="{{tbPartnerIncome$tbpiMember}}">
				{{tbPartnerIncome$tbpiMember}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiMember}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/admin/users/member.query.do?value={param}" type="text" id="tbpiMember" name="tbPartnerIncome.tbpiMember" text="{{lz.html(tbPartnerIncome.tbpiMember$||tbPartnerIncome.tbpiMember)}}" value="{{lz.htm(tbPartnerIncome.tbpiMember)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#tbpiMember').val())==''){return;};window.href('/admin/users/member.detail.html?key='+$('#tbpiMember').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiMember_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiMember">{{tbPartnerIncome.tbpiMember}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/users/member.details.html?key=tbPartnerIncome.tbpiMember}')">
			 {{lz.html(tbPartnerIncome.tbpiMember$||tbPartnerIncome.tbpiMember)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiMember}}
					
	{{lz.set("tbpiOrderNo_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiOrderNo"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiOrderNo"))))}}
	{{lz.set("tbpiOrderNo_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiOrderNo}}
	<dl lz:if="{{tbpiOrderNo_editable||tbpiOrderNo_readonly}}" class="ribs tbpiOrderNo  " major  ref="tbpiOrderNo">
		<dt>订 单 号:</dt>
		<dd lz:if="{{tbpiOrderNo_editable}}" input="text">
			<lz:block lz:if="{{tbPartnerIncome$tbpiOrderNo}}">
				{{tbPartnerIncome$tbpiOrderNo}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiOrderNo}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="tbPartnerIncome.tbpiOrderNo" id="tbpiOrderNo"  value="{{lz.htm(tbPartnerIncome.tbpiOrderNo)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人收益的订单号</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiOrderNo_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiOrderNo">{{tbPartnerIncome.tbpiOrderNo}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiOrderNo$||tbPartnerIncome.tbpiOrderNo)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiOrderNo}}
					
	{{lz.set("tbpiOrderType_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiOrderType"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiOrderType"))))}}
	{{lz.set("tbpiOrderType_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiOrderType}}
	<dl lz:if="{{tbpiOrderType_editable||tbpiOrderType_readonly}}" class="ribs tbpiOrderType  " major  ref="tbpiOrderType">
		<dt>订单类型:</dt>
		<dd lz:if="{{tbpiOrderType_editable}}" input="select">
			<lz:block lz:if="{{tbPartnerIncome$tbpiOrderType}}">
				{{tbPartnerIncome$tbpiOrderType}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiOrderType}}">
		 	<select class="narrow" id="tbpiOrderType" name="tbPartnerIncome.tbpiOrderType">
		 		<option value="">请选择</option>
				<option value="1" selected='{{tbPartnerIncome.tbpiOrderType=="1"?"selected":""}}'>直接购买</option>
				<option value="2" selected='{{tbPartnerIncome.tbpiOrderType=="2"?"selected":""}}'>余额提货订单</option>
		 	</select>
	 	 </lz:block>
	 	 
	 	 <em>请选择合伙人收益的订单类型</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiOrderType_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiOrderType">{{tbPartnerIncome.tbpiOrderType}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiOrderType$||tbPartnerIncome.tbpiOrderType)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiOrderType}}
					
	{{lz.set("tbpiPartnerNickname_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiPartnerNickname"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiPartnerNickname"))))}}
	{{lz.set("tbpiPartnerNickname_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiPartnerNickname}}
	<dl lz:if="{{tbpiPartnerNickname_editable||tbpiPartnerNickname_readonly}}" class="ribs tbpiPartnerNickname  " major  ref="tbpiPartnerNickname">
		<dt>合伙人昵称:</dt>
		<dd lz:if="{{tbpiPartnerNickname_editable}}" input="text">
			<lz:block lz:if="{{tbPartnerIncome$tbpiPartnerNickname}}">
				{{tbPartnerIncome$tbpiPartnerNickname}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiPartnerNickname}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="tbPartnerIncome.tbpiPartnerNickname" id="tbpiPartnerNickname"  value="{{lz.htm(tbPartnerIncome.tbpiPartnerNickname)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人收益的合伙人昵称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiPartnerNickname_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiPartnerNickname">{{tbPartnerIncome.tbpiPartnerNickname}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiPartnerNickname$||tbPartnerIncome.tbpiPartnerNickname)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiPartnerNickname}}
					
	{{lz.set("tbpiHead_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiHead"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiHead"))))}}
	{{lz.set("tbpiHead_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiHead}}
	<dl lz:if="{{tbpiHead_editable||tbpiHead_readonly}}" class="ribs tbpiHead  " minor  ref="tbpiHead">
		<dt>下单人头像:</dt>
		<dd lz:if="{{tbpiHead_editable}}" input="text">
			<lz:block lz:if="{{tbPartnerIncome$tbpiHead}}">
				{{tbPartnerIncome$tbpiHead}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiHead}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="tbPartnerIncome.tbpiHead" id="tbpiHead"  value="{{lz.htm(tbPartnerIncome.tbpiHead)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人收益的下单人头像</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiHead_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiHead">{{tbPartnerIncome.tbpiHead}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiHead$||tbPartnerIncome.tbpiHead)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiHead}}
					
	{{lz.set("tbpiNickname_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiNickname"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiNickname"))))}}
	{{lz.set("tbpiNickname_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiNickname}}
	<dl lz:if="{{tbpiNickname_editable||tbpiNickname_readonly}}" class="ribs tbpiNickname  " major  ref="tbpiNickname">
		<dt>下单人昵称:</dt>
		<dd lz:if="{{tbpiNickname_editable}}" input="text">
			<lz:block lz:if="{{tbPartnerIncome$tbpiNickname}}">
				{{tbPartnerIncome$tbpiNickname}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiNickname}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="tbPartnerIncome.tbpiNickname" id="tbpiNickname"  value="{{lz.htm(tbPartnerIncome.tbpiNickname)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人收益的下单人昵称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiNickname_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiNickname">{{tbPartnerIncome.tbpiNickname}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiNickname$||tbPartnerIncome.tbpiNickname)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiNickname}}
					
	{{lz.set("tbpiStreet_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiStreet"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiStreet"))))}}
	{{lz.set("tbpiStreet_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiStreet}}
	<dl lz:if="{{tbpiStreet_editable||tbpiStreet_readonly}}" class="ribs tbpiStreet   mider" major  ref="tbpiStreet">
		<dt>街　　道:</dt>
		<dd lz:if="{{tbpiStreet_editable}}" input="text">
			<lz:block lz:if="{{tbPartnerIncome$tbpiStreet}}">
				{{tbPartnerIncome$tbpiStreet}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiStreet}}">
		 	<input type="text" class="input mide"  maxlength="256" name="tbPartnerIncome.tbpiStreet" id="tbpiStreet"  value="{{lz.htm(tbPartnerIncome.tbpiStreet)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人收益的街道</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiStreet_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="tbpiStreet">{{tbPartnerIncome.tbpiStreet}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiStreet$||tbPartnerIncome.tbpiStreet)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiStreet}}
					
	{{lz.set("tbpiCity_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiCity"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiCity"))))}}
	{{lz.set("tbpiCity_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiCity}}
	<dl lz:if="{{tbpiCity_editable||tbpiCity_readonly}}" class="ribs tbpiCity   mider" major  ref="tbpiCity">
		<dt>省 市 区:</dt>
		<dd lz:if="{{tbpiCity_editable}}" input="text">
			<lz:block lz:if="{{tbPartnerIncome$tbpiCity}}">
				{{tbPartnerIncome$tbpiCity}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiCity}}">
		 	<input type="text" class="input mide"  maxlength="215" name="tbPartnerIncome.tbpiCity" id="tbpiCity"  value="{{lz.htm(tbPartnerIncome.tbpiCity)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人收益的省市区</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiCity_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="tbpiCity">{{tbPartnerIncome.tbpiCity}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiCity$||tbPartnerIncome.tbpiCity)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiCity}}
					
	{{lz.set("tbpiOrderTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiOrderTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"tbpiOrderTime"))))}}
	{{lz.set("tbpiOrderTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
				
	
	{{before$tbpiOrderTime}}
	<dl lz:if="{{tbpiOrderTime_editable||tbpiOrderTime_readonly}}" class="tbpiOrderTime  " major  ref="tbpiOrderTime">
		<dt>下单时间:</dt>
		<dd lz:if="{{tbpiOrderTime_editable}}" input="datetime">
			<lz:block lz:if="{{tbPartnerIncome$tbpiOrderTime}}">
				{{tbPartnerIncome$tbpiOrderTime}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiOrderTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="tbPartnerIncome.tbpiOrderTime" id="tbpiOrderTime"  value="{{tbPartnerIncome.tbpiOrderTime$}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请选择合伙人收益的下单时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiOrderTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiOrderTime">{{tbPartnerIncome.tbpiOrderTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiOrderTime$||tbPartnerIncome.tbpiOrderTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiOrderTime}}
					
	{{lz.set("tbpiMoney_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbpiMoney"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbpiMoney"))))}}
	{{lz.set("tbpiMoney_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbpiMoney}}
	<dl lz:if="{{tbpiMoney_editable||tbpiMoney_readonly}}" class="ribs tbpiMoney  " major  ref="tbpiMoney">
		<dt>收益金额:</dt>
		<dd lz:if="{{tbpiMoney_editable}}" input="menoy">
			<lz:block lz:if="{{tbPartnerIncome$tbpiMoney}}">
				{{tbPartnerIncome$tbpiMoney}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerIncome$tbpiMoney}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbPartnerIncome.tbpiMoney" id="tbpiMoney"  value="{{lz.htm(tbPartnerIncome.tbpiMoney)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人收益的收益金额</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpiMoney_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpiMoney">{{tbPartnerIncome.tbpiMoney}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerIncome.tbpiMoney$||tbPartnerIncome.tbpiMoney)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpiMoney}}
			
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{tbPartnerIncome.tbpiId}}" name="tbPartnerIncome.tbpiId" id="tbpiId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				
				
				
				
				
				
				
				
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/partner/income.edit.html?edittype=update&id={{tbPartnerIncome.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				
				
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>





 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/partner/income.edit.html",document.title,"/admin//images/icons/20088256422923477806.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/partner/income.edit.html");
		}else{
			$.closeModalDialog();
		}
	}



</script>
</html>